<?php 
ini_set('display_errors', 0);
$page=$_SERVER['REQUEST_URI'];
if($page=='/iptelservices/call-rates'){
		$a="active";
}
if($page=='/iptelservices/call-rates/A'){
		$a="active";
}
if($page=='/iptelservices/call-rates/B'){
		$b="active";
}
if($page=='/iptelservices/call-rates/C'){
		$c="active";
}
if($page=='/iptelservices/call-rates/D'){
		$d="active";
}
if($page=='/iptelservices/call-rates/E'){
		$e="active";
}
if($page=='/iptelservices/call-rates/F'){
		$f="active";
}
if($page=='/iptelservices/call-rates/G'){
		$g="active";
}
if($page=='/iptelservices/call-rates/H'){
		$h="active";
}
if($page=='/iptelservices/call-rates/I'){
		$i="active";
}
if($page=='/iptelservices/call-rates/J'){
		$j="active";
}
if($page=='/iptelservices/call-rates/K'){
		$k="active";
}
if($page=='/iptelservices/call-rates/L'){
		$l="active";
}
if($page=='/iptelservices/call-rates/M'){
		$m="active";
}
if($page=='/iptelservices/call-rates/N'){
		$n="active";
}
if($page=='/iptelservices/call-rates/O'){
		$o="active";
}
if($page=='/iptelservices/call-rates/P'){
		$p="active";
}
if($page=='/iptelservices/call-rates/Q'){
		$q="active";
}
if($page=='/iptelservices/call-rates/R'){
		$r="active";
}
if($page=='/iptelservices/call-rates/S'){
		$s="active";
}
if($page=='/iptelservices/call-rates/T'){
		$t="active";
}
if($page=='/iptelservices/call-rates/U'){
		$u="active";
}
if($page=='/iptelservices/call-rates/V'){
		$v="active";
}
if($page=='/iptelservices/call-rates/W'){
		$w="active";
}
if($page=='/iptelservices/call-rates/X'){
		$x="active";
}
if($page=='/iptelservices/call-rates/Y'){
		$y="active";
}
if($page=='/iptelservices/call-rates/Z'){
		$z="active";
}
	
?>
<!DOCTYPE html>
<html>

<body>

<!--CONTENT SECTION START-->

<div id="main-wrapper-sec">

<section>

	<!--INNER MAIN TITLE SECTION START-->

    <h2 class="inner-main-title pr-title">call rates</h2>
    
    <!--INNER MAIN TITLE SECTION END-->
    
    <!--CONTENT MAIN SECTION START-->
    
  <div class="content-main-sec">
  
  <!--INNER CONTENT LEFT SECTION START--> 
	
  <article class="inner-content-left-sec" style="width:965px;">
  <h1 class="inner-cont-title">Call Rates</h1>
  <div class="call_rate">
  <div class="f_l">
  <p><b>Note:</b></p>
  </div>
  <div class="f_l">
   <p>welcome to iptelservices</p>
    <p>welcome to iptelservices</p>
	 <p>welcome to iptelservices</p>
	 <div class="clear"></div>
	 </div>
	 </div>
  <!--CALL RATES SUB FIELDS SECTION START-->
  
  <div class="inner-cont-sub-left-sec" style="width:970px !important;border-right:none !important">
  
  <!--ALPHABET SECTION START-->
  
  <aside class="alphabet-links-main">
  <div style="float:left; height: 24px;line-height: 24px;">
  <select name="country" id="country" class="selected-country" onchange="countryRates()">
	<option>Scelect Country</option>
	<?php 
		$firstValue='';if(isset($rates_alldata)){ foreach($rates_alldata as $rateValue){
		if($rateValue->CountryName!='CountryName'){
			$firstValue=$firstValue.preg_replace('/\s+/', '', $rateValue->AreaPrefix);
			$firstValue=$firstValue."*";
			$firstValue=$firstValue.preg_replace('/\s+/', '', $rateValue->CountryName);
			$firstValue=$firstValue."*";
			$firstValue=$firstValue.preg_replace('/\s+/', '', $rateValue->Preminum);
			$firstValue=$firstValue."*";
			$firstValue=$firstValue.preg_replace('/\s+/', '', $rateValue->Standerd);
			$firstValue=$firstValue."*";
			$firstValue=$firstValue.preg_replace('/\s+/', '', trim($rateValue->BillingCycle,"'"));
		
	?>
	<option value="<?echo $firstValue; ?>" ><?echo $rateValue->CountryName; ?></option>
	<?php	$firstValue=''; } } } ?>
  </select>
  </div>
  <div class="alphabet-links">
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'A'; ?>" class="<?php echo $a;?>">A<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'B'; ?>"class="<?php echo $b;?>">B<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'C'; ?>" class="<?php echo $c;?>">C<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'D'; ?>" class="<?php echo $d;?>">D<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'E'; ?>"class="<?php echo $e;?>">E<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'F'; ?>" class="<?php echo $f;?>">F<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'G'; ?>" class="<?php echo $g;?>">G<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'H'; ?>" class="<?php echo $h;?>">H<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'I'; ?>" class="<?php echo $i;?>">I<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'J'; ?>" class="<?php echo $j;?>">J<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'K'; ?>" class="<?php echo $k;?>">K<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'L'; ?>" class="<?php echo $l;?>">L<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'M'; ?>" class="<?php echo $m;?>">M<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'N'; ?>" class="<?php echo $n;?>">N<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'O'; ?>" class="<?php echo $o;?>">O<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'P'; ?>" class="<?php echo $p;?>">P<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'Q'; ?>" class="<?php echo $q;?>">Q<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'R'; ?>" class="<?php echo $r;?>">R<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'S'; ?>" class="<?php echo $s;?>">S<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'T'; ?>" class="<?php echo $t;?>">T<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'U'; ?>" class="<?php echo $u;?>">U<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'V'; ?>" class="<?php echo $v;?>">V<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'W'; ?>" class="<?php echo $w;?>">W<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'X'; ?>" class="<?php echo $x;?>">X<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'Y'; ?>" class="<?php echo $y;?>">Y<span></span></a>
  <a href="<?php echo $this->Url('call-rates'); ?>/<?php echo 'Z'; ?>" class="<?php echo $z;?>">Z<span></span></a> </div>  <div class="clear"></div></aside>
  <div class="clear"></div>
  
  <!--DESTINATION AND CENT PER MINUTE SECTION START-->
  <ul class="country-fields-sec"> <span style="margin:0px 0px 0px 0px;color:#B20D65;font: bold 13px/32px Arial,Helvetica,sans-serif;"></span>
  <li class="cf-title">
<span>Flag</span> <span>Area Perfix</span> <span>Country Name</span><span>Premimum</span><span>Standerd</span><span>Billin cycle</span>
  </li>
		<div id="landlineData">
			<?php $i=0; $color='';if(isset($user_info)){ 
			foreach($user_info as $Value){ if(isset($Value->Flag)){ if($Value->Flag!='0'){ if($i%2==0){ $color='cf-mo-sec';}else{$color='cf-md-sec';}$i++; } }
			 ?>
			 <div class="<?php echo $color; ?>">
			  
			  <div class="cf-cont-sec">
			  <li class="cf-title1">
			  <span><?php if(isset($Value->Flag) && $Value->Flag!='0'){ ?>
			  <img src="<?php echo $this->basePath(); ?>/uploads/<?php $a=$Value->Flag; echo $a.'.png';?>" alt=""><?php }else{ ?>
				<span>&nbsp;</span>
			  <?php }?></span>
			  <span><?php echo$Value->AreaPrefix; ?></span> <span><?php echo$Value->CountryName; ?></span><span><?php echo$Value->Preminum; ?></span><span><?php echo$Value->Standerd; ?></span><span><?php echo trim($rateValue->BillingCycle,"'"); ?></span></li>
			 </div>
			</div>
			<?php } } ?>
		</div>
  </li>
  </ul>
  </div>
  <!--CALL RATES SUB FIELDS SECTION END-->
  </article>

  </div>
  
  <!--CONTENT MAIN SECTION END-->
  
  <div class="clear"></div>
  
  <!--CLIENTS AREA SECTION START-->
  
  <aside class="content-main-sec ot-lg-sec"> <img src="<?php echo $this->basePath(); ?>/images/truste.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/secured.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/mcafeev.jpg" alt="">
    <h3 class="otg-title">Trusted. Safe. Reliable.</h3>
  </aside>
  
  <!--CLIENTS AREA SECTION END-->
  
  <div class="clear"></div>
</section>

</div>

<!--CONTENT SECTION END--> 

</body>
</html>
<script>
	var carray='';var carray1='';var costfinal='';
	function countryRates(){
			var countryValue = $('#country').val();
			carray=countryValue.split('*');
			var ftotal='  <div class="cf-cont-sec"> <li class="cf-title1"><span>&nbsp;</span><span>'+carray[0]+'</span><span>'+carray[1]+'</span><span>'+carray[2]+'</span><span>'+carray[3]+'</span><span>'+carray[4]+'</span></li></div>';
			$("#landlineData").html(ftotal);
	}
</script>











